package cn.living.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.living.service.DroolsService;

@RestController
@RequestMapping("drools")
public class DroolsTestController {
	
	@Autowired
	private DroolsService droolsService;
	
	@GetMapping("/testboot")
	public String testBoot() {
		return "123";
	}
	
	@GetMapping("/showrults")
	public String showRules() {
		
		return droolsService.fireRule();
	}

}
